import java.util.Scanner;
public class year {
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        System.out.println("请输入年份：");
        int year=input.nextInt();
        boolean a= Rui(year);
        if(a==true){
            System.out.println(year+"是瑞年");
        }else{
            System.out.println(year+"不是瑞年");
        }
    }
    public static boolean Rui(int year){
        if((year%4==0&&year%100!=0)){
            return true;
        }else if(year%400==0) {
            return true;
        }
        return false;
        }
    }

